package controllers

import (
	//"net/http"
	"github.com/astaxie/beego"
)

type GameCtrl struct {
	beego.Controller
}

func (this *GameCtrl)JoinGame()  {
	nick := this.GetString("nick")
	beego.Info("微信昵称是："+nick)
	if len(nick) == 0 {
		nick = "匿名";
	}
	w := this.Ctx.ResponseWriter.ResponseWriter
	r := this.Ctx.Request
	Join(w, r, nick);
	this.ServeJSON()
}
